package com.jeesite.modules.fl.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;

@Table(name = "fl_clinic_setting", alias = "a", columns = {
        @Column(name = "id", attrName = "id", label = "id", isPK = true),
        @Column(name = "clinic", attrName = "clinic.id", label = "诊所"),       
        @Column(name = "department", attrName = "department", label = "科室"),
        @Column(name = "am_start_time", attrName = "amStartTime", label = "上午开始时间"),
        @Column(name = "am_end_time", attrName = "amEndTime", label = "上午结束时间"),
        @Column(name = "pm_start_time", attrName = "pmStartTime", label = "下午开始时间"),
        @Column(name = "pm_end_time", attrName = "pmEndTime", label = "下午结束时间"),
        @Column(name = "service_time", attrName = "serviceTime", label = "服务时间片"),
        @Column(name = "number", attrName = "number", label = "单位时间片服务人数"),
        @Column(name = "business_hours", attrName = "businessHours", label = "可预约时间"),
        @Column(name = "department_description", attrName = "departmentDescription", label = "科室介绍"),
        @Column(name = "en_description", attrName = "enDepartmentDescription", label = "英文科室介绍"),
        @Column(includeEntity = DataEntity.class),
	},joinTable = {
        @JoinTable(type = Type.LEFT_JOIN, entity = Clinic.class, alias = "c", on = "c.id = a.clinic", attrName = "clinic", columns = {@Column(name = "name", label = "名称")}),
	}, orderBy = "a.update_date DESC"
)
public class ClinicSetting extends DataEntity<ClinicSetting>{
	private static final long serialVersionUID = 1L;
	
	private Clinic clinic;
	private String department;
	private String amStartTime;
	private String amEndTime;
	private String pmStartTime;
	private String pmEndTime;
	private Integer serviceTime;
	private Integer number;
	private String departmentDescription;
	private String enDepartmentDescription;
	private String businessHours;
	
	public ClinicSetting(){
		super();
	}
	
	public ClinicSetting(String id){
		super(id);
	}

	public Clinic getClinic() {
		return clinic;
	}

	public void setClinic(Clinic clinic) {
		this.clinic = clinic;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getAmStartTime() {
		return amStartTime;
	}

	public void setAmStartTime(String amStartTime) {
		this.amStartTime = amStartTime;
	}

	public String getAmEndTime() {
		return amEndTime;
	}

	public void setAmEndTime(String amEndTime) {
		this.amEndTime = amEndTime;
	}

	public String getPmStartTime() {
		return pmStartTime;
	}

	public void setPmStartTime(String pmStartTime) {
		this.pmStartTime = pmStartTime;
	}

	public String getPmEndTime() {
		return pmEndTime;
	}

	public void setPmEndTime(String pmEndTime) {
		this.pmEndTime = pmEndTime;
	}

	public Integer getServiceTime() {
		return serviceTime;
	}

	public void setServiceTime(Integer serviceTime) {
		this.serviceTime = serviceTime;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getDepartmentDescription() {
		return departmentDescription;
	}

	public void setDepartmentDescription(String departmentDescription) {
		this.departmentDescription = departmentDescription;
	}

	public String getEnDepartmentDescription() {
		return enDepartmentDescription;
	}

	public void setEnDepartmentDescription(String enDepartmentDescription) {
		this.enDepartmentDescription = enDepartmentDescription;
	}

	public String getBusinessHours() {
		return businessHours;
	}

	public void setBusinessHours(String businessHours) {
		this.businessHours = businessHours;
	}

	
}
